﻿// JScript File

function changeLanguage(strMode)
{
	//default get_var to chang : Lang=strMode
	strLocation=window.location.toString();
	strMode=strMode.toString();
	strLocation=strLocation.replace(strLocation.substring(strLocation.indexOf('#'),strLocation.indexOf('#')>0?strLocation.length:0),'');
	strLocation=strLocation.replace('&Lang='+strLocation.charAt(strLocation.indexOf('&Lang=')+6)+strLocation.charAt(strLocation.indexOf('&Lang=')+7),'');
	strLocation=strLocation.replace('Lang='+strLocation.charAt(strLocation.indexOf('Lang=')+5)+strLocation.charAt(strLocation.indexOf('Lang=')+6),'');
	if(strLocation.indexOf('?')>-1)
	{
		strLocation+='&Lang='+strMode;
	}
	else
	{
		strLocation+='?Lang='+strMode;
	}
	window.location= strLocation;
}